<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pegawai_model extends CI_Model
{
	public function __construct(){
		parent::__construct();		
	}

	public function get_data_pegawai($id_pegawai){
		$data 	= $this->db->query("SELECT * FROM sp_pegawai WHERE pegawai_id = $id_pegawai")->row_array();		
		$imgurl = site_url('files/pegawai').'/'.$data['photo_pegawai'];
		$data['image'] = $imgurl;

		return $data;
	}
}